-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve ReportActions debugging #56867
Improve ReportActions debugging #56867
Conversation
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@DylanDylann any ETA on reviewing this one? |
@VickyStash The system message is displayed incompletely ![]() |
@DylanDylann I've investigated the issue, and it looks like the problem is in the Parser.htmlToText function.
I'm not sure if it should be fixed as part of this PR, any thoughts @DylanDylann ? |
Could you apply the same logic that we did on the report screen or on the LHN or copy to clipboard? Screen.Recording.2025-02-17.at.17.43.58.mov |
@DylanDylann, I've applied a fix. Could you take another look? |
BUG: The deleted message isn't displayed. My suggestion: We shouldn't hide deleted messages from the report action debug list. But let's display "Deleted message", then we still can check these report actions in debug mode Screen.Recording.2025-02-18.at.15.08.18.mov |
BUG: The created message displays the wrong creator Screen.Recording.2025-02-18.at.15.09.56.mov |
@DylanDylann the feedback has been applied! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-19.at.15.50.48.movAndroid: mWeb ChromeScreen.Recording.2025-02-19.at.15.20.27.moviOS: NativeScreen.Recording.2025-02-19.at.15.46.31.moviOS: mWeb SafariScreen.Recording.2025-02-19.at.15.38.20.movMacOS: Chrome / SafariScreen.Recording.2025-02-19.at.14.09.13.movMacOS: DesktopScreen.Recording.2025-02-19.at.15.19.15.mov |
const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`); | ||
const canUserPerformWriteAction = ReportUtils.canUserPerformWriteAction(report); | ||
const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`); | ||
const ifUserCanPerformWriteAction = canUserPerformWriteAction(report); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why we shouldn't just use the same term?
const ifUserCanPerformWriteAction = canUserPerformWriteAction(report); | |
const canUserPerformWriteAction = canUserPerformWriteAction(report); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@puneetlath it gives lint error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, got it!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.1.2-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.2-1 🚀
|
Explanation of Change
Add improvements to the Debug Mode to simplify ReportActions debugging.
Fixed Issues
$ #56853
PROPOSAL: N/A
Tests
Debug mode
toggle on.Debug
option. Make sure debug information for the report action is opened and works as usual. Repeat the same for several different messages.Debug
in the details.Actions
tab. See that now it has a search bar, and action items have message information.Offline tests
Same, as in the Tests section.
QA Steps
Same, as in the Tests section.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mp4
Android: mWeb Chrome
android_web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios_web.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4